package cn.xgj.sfzy.mapper;

import cn.xgj.sfzy.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 73175
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-10-24 10:21:16
* @Entity cn.xgj.sfzy.entity.User
*/
public interface UserMapper {
    //    登录
    User selectByUsernameAndPassword(
            @Param("userName") String userName,
            @Param("userPassword") String userPassword);
    int delete(Integer userId);

    int insert(User user);

    User findById(Integer userId);

    int update(User user);

    List<User> find(User user);

}
